I have an application which contains razor forms with app , navmenu , home files I want to implement authentication with idenitity profile manager if not logged in redirect to login also needs to maintain session stage for the JWT , I have done in dotnet core cshtml but razor forms looks little different can any one explain how can I implement it