Updated the AFTAuth Filters to have proper error handling