Added addDrug ajax error handling