added password encryption