Better login detection.