implementing username query option