Proper retrieving of login status during search