Fix duplication of user register hook.