Added auto login with shared preferences