A former student at the University of Illinois College of Law will get another chance to prove in court that he did not stalk a classmate and should be allowed back on campus.

An Illinois appeals court on Friday ordered a new hearing for law student Adil Ahmad, who in 2013 was barred from the Champaign, Illinois, campus for two years and ordered to have no contact with a female classmate who accused him of emailing her and of confronting her after she rebuffed his offers of a date.

A three-judge panel of the Appellate Court of Illinois for the Fourth District found that a trial judge had considered evidence that had not been entered into the record when granting the no-contact order. The trial judge had improperly considered a police report revealing that a county court judge had ordered Ahmad removed from the courthouse during a mock trial competition earlier in the year, the appeals court said.