make conditional in logout more clear