add validation config and demo