made error messagse for ajax more descriptive, removed unnecessary console logs