added alternative to ContraintValidator