add check for email and update if needed