Added rule-checking functionality to backend updateEvents.js script