Found a way to avoid non-entity obejct in form