Added validations to a form