Validate attributes to help avoid confusing situations.