added validations to forms