prints invalid messages + alerts xhr errors