improve error messages on validator fail, handle invalid nid better