fix file filed validation