login behavior improvement
Signed-off-by: duketwo <duketwoqq@gmail.com>