Added model validation and PUT functionality for the existing models.