fix validate.required