Fixed password confirmation issue and added password digest.