validate contract_type