modify users_controller.rb and model user.rb