validate expressions