After renaming a username I am unable to login because the local account password is not valid. When I log in using the old username I am unable to login but it is still logging onto the old user account.

When I try to add the new username from control panel the new username reverts to the old username.