Remove password digest and fixing flash code