Code clean up. Fixing password encryption on update. Add another test for making sure the password is changed.