Made it redirect to main search page if the requested course code is invalid