(2)(a) A pharmacist may not dispense a controlled substance listed in Schedule II, Schedule III, or Schedule IV to any patient or patient's agent without first determining, in the exercise of her or his professional judgment, that the prescription is valid. The pharmacist may dispense the controlled substance, in the exercise of her or his professional judgment, when the pharmacist or ....