Add login befor logout