validations added for email and name