It looks like a problem on line 11 of your code:
$WAFV_Errors .= WAValidateLE($_SESSION['captcha_Security_Code_1'] . "",((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"") . "",true,1);
It should look more like this:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Code_1"])?$_POST["Security_Code_1"]:"")) . "",((isset($_SESSION["captcha_Security_Code_1"]))?strtolower($_SESSION["captcha_Security_Code_1"]):"") . "",true,5);
Best regards,
Brian