Fixed def for connect ensure login