add login
add some api definition