helper func for logged in users
this function checks the host based path for any logged in users and returns the number or users, a list of usernames and an error if any