extend login button search to input element, fixed a try catch bug.