Automatic checks for identity cards