Assert that the login succeeded for more helpful error messages

Change-Id: I9f985d31de86fe2a062d10ca3f51fb2d7c727798