add file validation