refs #Task8272 refactoring users_controller.rb