connected login with index