Adding validation funcation to thrift service - AIRAVATA-1200