init repo with serializeForm function