create auto save function attached to field on blur event