add login function
Merge pull request #6 from dullers/dev-login-function

add login function