Validation for file type.