updating error message for bad content