expose login and getcoursebyuserid with rest service