update register & login.