Is it illiegal to check someones license?

Nope