add is_login() method to authapi