Fix user model code
Make relationship rules work in ontology