basic validations on the form