fixed create course function. Now working on getting all courses