Update credentials_controller.rb