userHasLoggedOut method
Logs out the current user and resets the user state.
This method sets the _loggedInUser to null and notifies listeners of the state change.
Implementation
void userHasLoggedOut() {
_loggedInUser = null;
_userIsLoggedIn = false;
notifyListeners(); // Notifies listeners that the user has logged out.
}