generate html forms with validation from JSON