Implement validation logic in putDoc method to pass ValidationsTest