cached the user course in local storage