I found there is a bug for displaying user login block.

and the solution is

replace flowing

if ($sidebar_left) {

}

with

if ($left) {

}