Used "URIBuilder" to build the login URI.
The return value of "login()" should be checked.