The server side for my simple "change email" option.