This will do it for you:
<?php echo(ValidatedField("bilderHinzufuegen","imageInfo ")?ValidatedField("bilderHinzufuegen","imageInfo "):$_SESSION['name']) ?>
basically what this ternary operator is doing is printing the validated entry if it exists and if it doesn't it will print the session value