Login link auto changed to logout