better handling of validations on nested values