added TLeaf login logic and TLeaf Server SDK logic