add validation stop func