Make a function and add it to everything that takes inputs and expected column names and throws an error if they aren't there.