add login and extension delegate in smartfoxclient