moved login via email detection into the internal login block