Add name and email validation to user class in model