correct
"an optometrist" is a modifier that must be offset from the rest of the sentence. commas are the least intrusive way to do this.