fixed possible null pointer exception in extending the validators