add validator, error validation on file upload