Working code changing emails