Add a validation for JSON file before upload