create a api to define validations