Ensured that click event on login is captured