Added validate endpoint