log in out and fix bug in password digest controller