Added better id check for event related routes