add date formats and use name attribute for registration email