Added IP address validation