Fixed wrong variable names, wouldn't search in all groups for existing usernames