public function checkRequired($validator, Element &$element)
    {
        if (in_array($validator, ['notEmpty'])) {
            $element->getInput()->required = true;
            $element->getInput()->allowEmpty = false;
        }
    }