formex: investigated theme processing, templates and theme functions
formex: theming form
formex: used hook_forms()

How to use hook_forms() to specify validation and submission functions.