validate post-type when adding a new relation