Changed ApplicationController to ActionController::Base