[WIP] Write model validation logic for issues #66