validate size of file