1. Added password encoding.