add is_logined method.