documentation. minor refactoring. changed to new api error format for login/register