Update doc.
Perfected login flow on client side.