update login and register