fix issue in validators.required