Added validations to form