Updated Domain\Model to correctly determine invalid attributes