fixed problem with attempt to use null as validator