VE-115 add function to check for uploaded file validity in upload tool, added new error messages