validate content type