docs on how to create validators