added suport for html emails on registration