Fix logout (actually login problem)