add login&change index