[PATCH] Fixing redirects after a failed token validation