More login hooks Closes #3543.