file update

Updated the file validation