overloding waitForLogin method to pass user info and backend URL