update index finish register and login