create the form and finished the form validation