Updated link to show login or logout, depending on current status