Add a url parameter to the fail redirect in the server validation like: page.php?fail=1
Then you can set the value of the input based on that value like:
<?php echo(isset($_GET['fail'])?ValidatedField("addcompany_937","FRcompanyTITLE"):$rsEDITCOMPANY->getColumnVal("FRcompanyTITLE")); ?>
So if it sees fail in the url it uses the validatedfield value, otherwise it uses the value from the recordset.