Fix console and add password encoding