Ajax calls errors handling added.