Remember this line:
$LogOut->Name = "Admin";
has to match the line on your login page and your restrict access code, so that the logout page works with the login page.
Its correct on all my pages
$Authenticate->Name = "Admin";
Restrict Access code Dashboard page:
$RestrictAccess->Name = "Admin";
I also attached copies of my login index page and dashboard page for your review