Throw exception if validate() is called without config being set