add emay cancel register function