fixed the auto-login feature (was previously dismissing the login page before it appeared)