added validations on name and email.