Both student and course must be selected.