added function render_form($array) in utils.php to render html forms directly from an array with the elements and attributes of the form