added encrypt password helper