New method for validating IPv4 format