Added Validation for files