code $u->logLogin() and  $h->logLogin()