almost done the form validation