Add relations example; clean up validator