bug fixed in validifyTime()