added validation and name to user model