Added ip address validation