title: grails add validation error to hasErrors
body: <p>I'd like to know how to add a custom error to the hasErrors method so that the gsp picks up the error. My code thus far.</p>
  
  <pre><code>def recoverySetup = new RecoverySetup(params)
  
  def onesolOrgkey = OnesolOrgkeyInfo.get(new OnesolOrgkeyInfo(params));
  
  if(onesolOrgkey != null) {
      recoverySetup.setOneSolOrgkey(onesolOrgkey)
  } else {
      recoverySetup.errors.reject('orgkey', 'You must provide a valid Org Key')
  }
  
  recoverySetup.validate()
  
  if(recoverySetup.hasErrors()) {
      render view: 'create', model: [recoverySetupInstance: recoverySetup]
      return
  }
  </code></pre>