added Core Data validation to PUT, DELETE