added callback to the register proccess