Fix IP address validation