added focus event on login