add attachment content type validation