restore 'resend email' functionality