various improvements to upload page and validation