base template and upload page validation

- added the correct doctype and charset encoding to the base template
- updated validation of input fields on the upload page to allow 0 values for max_ambig