Validates problem codes