The Insolvency Service database provides details of all directors who have been disqualified from acting in the last three months.
https://www.insolvencydirect.bis.gov.uk/IESdatabase/viewdirectorsummary-new.asp
The Companies House database allows you to search for directors who are currently disqualified. Notice of disqualification will be removed once the period comes to an end.
https://beta.companieshouse.gov.uk
You can be prosecuted and held liable for the company’s debts if you are held to be acting on the instructions of someone who has been disqualified.
It makes sense to check if you are in doubt.