fixed courses controller error with 'current_user.id'