LoggedIn.php - Query refactoring

LoggedIn.php will use a single query and reference the data in that single result now.