Correct the form validate errors