refs #477 add the function that update the user's email