A simpler solution would be to save the GUID along with the user account when creating it. For example, you can name it VerificationCode . When you create a user account, you randomly store a GUID with it, for example, 120a9c10-4f2e-11e0-b8af-0800200c9a66.
Now in the activation link you insert the GUID instead of the email address: http://localhost:3076/user/Authenticate-Users.aspx?code=120a9c10-4f2e-11e0-b8af-0800200c9a66
When the page is executed, it searches for the user by the GUID to indicate that the account has been verified.
source share