I see. A simple solution would be to wrap the fail validation in the reverse IF statement like:
<?php
if ($_SERVER["REQUEST_METHOD"] != "POST") {
?>
<?php
if (ValidatedField('EmployeeDetails_705','EmployeeDetails_705')) {
if ((strpos((",".ValidatedField("EmployeeDetails_705","EmployeeDetails_705").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<div class="alert-warning col-md-6">Password did not update Successfully (requires 8-20 characters with 1 number and 1 special character)</div>
<?php //WAFV_Conditional Employee-Details.php EmployeeDetails_705(1:)
}
}
}
?>
<?php
}
?>