adding callback to user register