File upload field is required but acting like it is optional