Move authentication helpers from application_helper.rb to utilities.rb