Code validator