Index: PostgreSqlDotnetCore/Controllers/ProductsController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/ProductsController.cs	(revision 67821048db84782043d1d0806ae4b689a699b950)
+++ PostgreSqlDotnetCore/Controllers/ProductsController.cs	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
@@ -16,6 +16,4 @@
         public ProductsController(UserManager<IdentityUser> userManager) : base(userManager)
         {
-            // set if is authenticated
-            ViewBag.isAuthenticated = new UsersClass();
         }
 
@@ -28,8 +26,8 @@
         //}
         // GET: Customer
-        public ActionResult Index(string? searchString)
+        public async Task<ActionResult> IndexAsync(string? searchString)
         {
             // set if is authenticated
-            ViewBag.isAuthenticated = new UsersClass();
+            ViewBag.isAuthenticated = await getCrrentUser();
             if (!String.IsNullOrEmpty(searchString))
             {
