updated error convention
added login and accounts/me api