Fix logout.

Fix the logout xhr request.