syntax correction on file validation