Fixed a bug where a user could login multiple times and remain logged in after supposedly logging out.