v1.2.0, add option to autoLogin