go to the pc, go the find my phone service for windows phones, sign in using the same email account that you used on the phone, select lock your phone and follow instructions- It should lock your phone and when you unlock it the old code should be gone
Check back here if it works for you
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Windows Central.