Added email update function