validate fileinput