changed $validFrom to $validTo in 2 places