Fixes bug: show error when user inputs invalid course code