added behavior to the login button