log in and get classes json (fixes #1)