Change register to use email param. Enable logging.