Added a few validations to the form