add aggregate function to display the item Inventory / fix login redirection if isauthenticated