Fix logout bug on login page