added require_admin method to applications_controller.rb