Added validation for file config