validate before creating relational model