Validate data