Add docs for validate