added password encryption code