fix some bug, Moodle login function, get token function, listing courses,...