Added regular expressions to check course code

Regular expression added to check if the entered course code is of valid format.
i.e. of the form ([a single word][space][char][3-digit number]).
This is done so as to increase the robustness of the application.