Equality added to length test in validDate