Added form validator...

…that works more or less well. Served to discover that the input
construction for the swatches and linetype was sorta crappy. Will fix
this later, try to dig into jquery-ui.