login using db
Merge pull request #1 from keeeeenw/rest_login

login using db