use the slugified version of the code for validation