Ajax error handling for the grid data fetch.
Also rework the unauthenticated case.