login and logout check
login and logout check