bug fix for bad login search