Add SSL in production
Improve password digest error
Add sign-in function