modified upload.html with javascript validations