Handle form serialization