buildFormInputs
seperated files from rest of inputs in buildFormInputs