Course names and course codes can be canonicalised by using a autocompletion dropdown. (See courses.json).
Similarly, we can store a list of names of professors, and autocomplete it.
Also, there should be restrictions on possible course codes (e.g. number of characters, first 2 characters must be alphabetical, etc.)