update login function and add filter roles
Merge pull request #9 from linhnt/develop

update login function