added form validation for upload page