Mandatory upload field values missing when form is submitted