President, PM, COAS vows to defend democratic process