validate that media_type is present