Add an action listener to the login button