add validate code hash