Support better login detection