logging out almost works