[login] login function #2

- match email and password.
- add to session
- fix salt problem.