Added course validation.

Handles exceptions when wrong URLs or wrong course numbers get typed on
the address bar. Previously the user could type a worng URL and get an
error page, now it gets routed to course 36.