Check the patient id when it is entered.