The code looks correct to me on the confirm page. Is the random string stored correctly in the database? If you gave me FTP access I could go through the process and debug it along the way to figure out what is wrong.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.