Fixed a bug in the validation that was causing the entity to be marked as valid

If a sub-entity was valid, the entity was being declared valid