Modified validate bug fixed