added hashing function for email users