code for handling auto formatting booleans and registering forms at many
levels