Added a validation constraint interface.