Refactor check_schema
Add message for non-standard dialect