Added a custom failure app to prevent infinite redirects on index page.