Error message created if neither name or slug is passed in.