Avoid form submission when no valid comment is selected