Make sure name is not empty