setting up device register topic and email