Update application_controller.rb

Added filters