The validations are failing, this is why you get the valid = false in the URL. To determine what validation is failing you should add a new line just after line 29 and put this code in the new line:
die("the WAFV_Errors are: " . $WAFV_Errors);
This will let you know what validations are failing by the number, you can then look at the validation number on your page to see what one is failing. It looks like you have validations ranging from 1 to 6 currently on the page. Please post back and let us know what the result is.