added validations for name and email
user model