added validations to form