made method in the patient class to check if a patientNums vector contains valid patientNums