Add function to load event data and perform input check