automated html form creation and input validation