As far as I know, Windows XP doesn't store its passwords in the registry like previous versions of Windows... Are you sure it was the registry? If it ever happens again, I suggest using a small utility called ntpasswd. Use it to blank the password, login to Windows, and change your password there. Only use it to blank the password, not change it.