updated isRequired validator