Use correct form helpers.

Here's a fix for your bug.