moved form validation to function
fixed pointer to head and foot.php
i can't spell view
variables pulled from $fromVars
updated comments
validation done via function