Ok corrected the code
I've corrected the PHP code as instructed. It updates as new register, drops me back to the user profile page and sent an email as before:
DreamLight Publishing Registration Confirmation
Thanks for registering at DreamLight Publishing. View your profile at:
When I click on the link it takes me to the user profile page which means that the code is no longer pointing me to a 404 no page found error.
However, when I go into the admin storemanager and refresh users, it still indicates that the user is not verified. Isn't the loop supposed to send out a verification that the email address is "good", owned by the user registering and then flag the entry in the user database table as "verified". It doesn't appear that the user verification is working at all.
Not sure how to correct this. I also think that the email sent after registration should say please click link to verify email address rather than view your profile at: this is actually very confusing to the end user. There aren't any instructions as to how the registration works or is supposed to. Just a form to fill out and an update button, then an email if they happen to notice. I don't see any verification "loop" in the process that lets the end user know what's support to happen.