support session check and login.