use the slugified version of the code for validation
Merge pull request #86 from dimagi/code-edit-fix

use the slugified version of the code for validation