replace deprecate login method.
update to latest version lib