Corrected the email hash factory