Added automatic password encryption.