Update register client code