ECP working as per law, constitution, says secretary