Help! Background Check?

I'm a pre-nursing student and I was advised to check whether having a psychiatric history can prevent me from being able to take the NCLEX. I had an overdose and some hospitalizations in the past. Will I be able to become a nurse, or is there a period of time I have to wait since the incident? I'd like to know before I complete all the coursework! I'm in Illinois by the way. I want to be either a Nurse Anesthetist or a Psychiatric Nurse.