Updated password encoding in DB and other processing functions