properly log out guest users