Fixing the logout bug that resulted from using sessions again