validate_columns function

Check number, names, and type of columns