alert errors from back  end