added the form validations