fix date formats, adds password encoding