Fixed #13147 -- Moved User validation logic from form to model.