YDPQRValidate : with updated code with modifications