a simple login system based on AVL tree