Updated the redirect route to test if data is displaying an error