Authentication validity check is done before each call to backend instead of only on route change.