Fixed a bug. Next thing: 1. Remove un-necessary print outs. 2. Handle login failed.