Redirect users to error page on errors