update the login and registers part