Update form handling to work with latest api changes.
Merge pull request #7 from raymyers/master

Update form handling to work with latest api changes.