Replaced primitive error messages with redirect to index page.