Little correction in validator