add a validation to the formview