added basic validate api documentation