a few comments about login hooks