update reg and login