Fix course error when not logged in.