Added auto login feature