Password reset always fails fix

Fixes #228.