added reset password/decrypt-reencrypt function