add the validations for files
Merge pull request #5 from cmm/add-file-verification

add the validations for files