added validation to the user model for new user signup