FIX: logout issue when you are logged in

cc @asmeurer