fixed codes validation