Update authentications_controller.rb