Of course it is not legal.
But checking cars for failed MOTs, no road-tax etc when the driver pays all that does fuck all. You have got to go after the drivers who don't have licenses. More often than not, IME at least, the ones with no licences are the worst as they lost their license for drink driving but are still on the road and the police can't seem to get them.