added encode password hash