Added UpdateEmail function