Validate cidr_ip, group and group_id on input