the validation code is after the insert record code.
move lines 79 - 93:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_index_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateLE(((isset($_POST["Log_in_group_Security_code"]))?$_POST["Log_in_group_Security_code"]:"") . "",$_SESSION['captcha_Log_in_group_Security_code'] . "",true,1);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"index");
}
}
?>
to line 40 so that the form will be validated before trying to insert the information into the database.