update function verify of name and email