added validation for solr query