add definitions to users_controller.rb