The redirect page after registering is based on the accesscheck query string variable
the accesscheck querystring variable will be used as the redirect page. The code i gave to link to the registration page should be placed on the checkout page.
this link to the registration page:
will redirect to the login page because that is the value of the accesscheck variable: