I am in process of migration from .net core 2.1 to 3.0. In my previous code, I was redirecting to login page at some condition using