Update the function of Register.