generate token in resend confirmation email