password recovery fix and tests
Merge pull request #30 from nyaruka/password-recovery

password recovery fix and tests