use jquery adding a toast to show the error msgs