re-work update_cryptpw logic
Merge pull request #20 from troy2914/master

re-work update_cryptpw logic