Added documentation on validation