Validate internet and dialog