validate_dataframe function

Validate that input is a data frame