Add Login distinguish

add test fnc