enforcing resource ownership in relation creation

Closes #114