Added ":visible" to jQuery selector for Login link.