Fix non-user friendly error message indicating that password digest is empty. I don't like this solution
Add additional tests