Fixed crash on login failure of only one endpoint.
Merge branch 'functional'