Add form_data function, used to serialize form data