Made exceptions in validate() fail fast