Added verification between old and new passwords.

Much of the code is a hack and needs to be re-written. Definitely not
production.