add validation to network fields