handling inputs in UploadForm