added password encrypting