How to change the validation of a form field.