Handling threats to the validity of online data