made email errors optional and disabled by default