Should the bottom of eg

tpl_contact_us_default.php

be

?>
</form>
</div>

instead of

?>

</div>