Password wasn't hashed before saving it in the database
if the user changed the password in the browser.

Fixes #17
Merge pull request #18 from Trellmor/for-balu/changepwd

Password wasn't hashed before saving it in the database