Augmented generated code with validation

Ensured that required fields were present, price fields were
numeric and at least one cent, titles are unique, images match
given format.