implemented name and email validation on user model