error when trying to add course to user