added logging to ajax errors