Fixed bug auto login