Add auto-login feature.