fix issue #144 reset password system error

@monimckenna @rtanikella @rwschwanke @chkhm 

This will fix issue #144. Ready to be tested.