Web: ensure validity of received messages