sendgrid helps to send code
to build a custom register flow
you should get user really registered ONLY after the verification code is correct as expected.
note: copy and paste the example does not work. To learn JS/Velo, see the Getting Started Category of the forum