Fixed login with old session