Removed unnecessary code in users_controller
Remove Rails 4 compatibility code from deploy.rb