validating statements