Added onClick action to submit button to identify the selected options in the form