fixes #4522 Auto-login Broke