Change login/logout based on user current authentication