Fixed local auto login