modify the validate