add back auto login functionality for testing and local development without connection;