Should check for email and isAdmin on main layout page instead of only isAdmin