fix bug affecting login/logout buttons