Serialize form to a plain object