fixed pwdalgorythm not getting persisted