public function checkFormAction()
    {
        $request = $this->getRequest();
        $success = 0;
        $errors = [];

        if ($request->isPost()) {
            $formInputs = $this->getTool('meliscore', 'melis_core_gdpr_tool')->sanitizeRecursive(get_object_vars($request->getPost()), [], true);
            $formConfig = $this->getFormConfig('meliscore/tools/melis_core_gdpr_tool/forms/melis_core_gdpr_search_form', 'melis_core_gdpr_search_form');
            $form = $this->getForm($formConfig);
            $form->setData($formInputs);

            if ($form->isValid()) {
                $success = 1;
            }
            else {
                $errors = $this->getFormErrors($form->getMessages(), $formConfig);
                $success = 0;
            }
        }

        return new JsonModel ([
            'success' =>  $success,
            'errors' => $errors,
        ]);
    }