Fix validation when supplying value to validate()

Fix one issue mentioned in #119