Content type and length check