validate complex