Fixed the reset password bug after the Devise upgrade.