check word existing before saving