to determine which validation is failing, change this code:
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"register_272");
}
to:
if ($WAFV_Errors != "") {
die($WAFV_Errors);
PostResult($WAFV_Redirect,$WAFV_Errors,"register_272");
}
this will write a comma separated list of numbers corresponding to the validations that are failing.