Add jsdoc for validation