added logic expression validator