make check wheder session is expired when press logout button