Add user-defined validations.