Update Lab6 with form validation