Imvprove repec validation function.