Changes made to validation in valueobject