Add docs for validator