Fix 401 (Unauthorized: CSRF validation failed) error while trying to logout