excludes invalid events when looking for latest check-in/out. Prevents crash when someone used their card before being registered -> there was an entry in the events, but not a check-out time -> crash