Updated application controller to prevent CSRF exception from being raised