using decorator to check the user is trying to load a valid event