49853af
Check for login earlier Ensure that assertLogin is called early to avoid confusing error messages. Fixes #643