some refactoring and functinality for multiple form fields put to one field
when getting data from db also check object type matching