changing default behavior of login button