fix password reset

This patch should fix a problem with invalid password reset tokens. 

See http://stackoverflow.com/questions/19018657/rails-4-devise-password-reset-is-always-giving-a-token-is-invalid-error-on