fixed logging out