solve password digest cannot be blank problem when use active record