change instance()->getInstance() to follow java naming convention
remove unused var
add LoginResult