Added a more detailed comment on login().