updated description for isLogged function