Limit input code field

Closes #40
Merge pull request #46 from Sebbe/limit-input-fields

Limit input code field