If you want the user to go the thank you page, just remove the lines of code you have posted in the previous post.
Those lines of codes checks if the user have the email confirmed yet, but since the user just register then he probably has not confirmed his email. You can also change it to:
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("users_LogIn.php");
}