Added serializeForm method