Add form attributes, and other things.