fixed a critical bug where master password was reset prematurely, and added a master password checksum to catch typos.