This is exactly what I was looking for with one exception: I changed the redirect wp_redirect(site_url()); to auth_redirect(); to direct the user to the login page.
Thanks, that lets me change the text but can I edit the link text? Currently says Login and Register. I would like to change to “Sign In” and “Create a Free Account”.