Update register and logout.