If you are locked out of your phone and do not remember your unlock code, try the following:
If the login still opens the old account after the phone reset, try opening the login link in a private/incognito window.