added validations for user name and email