added pw encryption