Key validation and compilation error validation