Added password encoding