Redirect to homepage on error