fixing password digest and form