Updates application controller to prevent CSRF exception from being raised