resend activation code logic