validate_data function

Validate Data and Optionally Delete Missing Data