Improved validation of teamcodes and vouchercodes.