Added email function to users