Pass $course to register view