Trying to resolve a looping error that doesn't find usernames