added validation for user model, passed tests