Added validator to 'code'

imported formencode and attached a validator to code to ensure that code is a positive integer from 100 to 599.

Changed the default 'code' to 200.