clean up flash in application layout, remove password digest error on user