validate.go: docs added