You have to add the invalid url parameter to the validation fail redirect.
So On line 17 it should be something like:
$WAFV_Redirect = "member_update-2.php?invalid=1";
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.