Got login work

Signed-off-by: Thynson <lanxingcan@gmail.com>