Make value validation return an error