File validation modified