check logout