added validations on the forms