Fix 403 errors when login fails