How to solve the problem with lead validation?