To claim education credit the school has to be an eligible education institution.
In order to be an eligible educational institution, the school must be eligible to participate in a student aid program administered by the Department of Education.
You can check this database.
https://ope.ed.gov/dapip/