finalize form validation