Checking for each ajax request if 401, if yes go login