Fixing some logical errors

The updated validateConstraints logic in some cases prohibited
uploading a community cookbook