properly handle login errors, more fixes
0.1.2