modify validate form