Check for hash column when registering schema

And raise an exception if the column does not exist.