Update app/controllers/user_controller.rb

Add safety validator check