Make sure that login/logouts are only shown or hidden when they are
applicable.