added option to disable register email