Validate model