clean up authentication.rb