Password update bug fix