adding validations to the instance model