fixed minor issue when clicking login button.