update form validate ways