Function definition for update email correct to avoid strict standard warning