disallows sending invalid data