fixing log-in detection for previous bug-fix.