check for invalid attributes