add validation for the form