Made login state dependent on the existence of the current user among the list of users