Added rep_anode/rep_bnode validation

Check whether there is a baselink matching rep_anode, rep_bnode for
action=2